// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import axios from 'axios'
import './global.less'
import bootstrap from './core/bootstrap'
import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './components/global.less'
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
// import './mock'
axios.defaults.withCredentials = true // axios生产环境默认带上cookie

Vue.config.productionTip = false
if (process.env.NODE_ENV === 'production') {
  console.log = function () { }
}
// mount axios Vue.$http and this.$http
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
